When activating an uninteresting window, the last_user_time isn't updated,
because we aren't tracking the window that the user_time gets updated on.
Hack around this by setting the last_user_time in shell_app_activate when
activating an uninteresting window.
https://bugzilla.gnome.org/show_bug.cgi?id=643302
meta_window_get_user_time (most_recent_transient)))
window = most_recent_transient;
+
+ if (!shell_window_tracker_is_window_interesting (window))
+ {
+ /* We won't get notify::user-time signals for uninteresting windows,
+ * which means that an app's last_user_time won't get updated.
+ * Update it here instead.
+ */
+ app->running_state->last_user_time = timestamp;
+ }
+
if (active != workspace)
meta_workspace_activate_with_focus (workspace, window, timestamp);
else